#include "TwoPositionSwitch.h"
#include "DriverStation.h"

TwoPositionSwitch::TwoPositionSwitch(unsigned int channel, unsigned int id) : Switch(channel, id)
{
	//Nothing to do here... How lonely!
}

Switch::Position
TwoPositionSwitch::GetPosition(void)
{
	switch(DriverStation::GetInstance()->GetDigitalIn(m_channel))
	{
		case true:
			return Positive;
		case false:
			return Negative;
		default:
			throw -1;
	}
}
